﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace PromoServer.Library.Entities
{
    public class Layout
    {
        public int LayoutID { get; set; }

        public string Name { get; set; }

        public int ScheduleID { get; set; }

        public DateTime CreationDate { get; set; }

        public ObservableCollection<LayoutContent> Content { get; set; }

        public Layout(string name, int scheduleID)
        {
            // New layout
            LayoutID = 0;
            Name = name;
            ScheduleID = scheduleID;

            Content = new ObservableCollection<LayoutContent>();
        }

        public Layout(int layoutID, string name, int scheduleID)
        {
            // Existing layout
            LayoutID = layoutID;
            Name = name;
            ScheduleID = scheduleID;

            Content = new ObservableCollection<LayoutContent>();
        }
    }
}
